<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<#assign ctx = request.contextPath />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;NO-CACHE" />
<!-- <link rel="icon" href="${ctx!}/images/JASU_Squares_ J.jpg"  /> 
<link type="text/css" rel="stylesheet" href="${ctx}/css/show_list.css"/> -->
<script type="text/javascript" language="javascript" src="${ctx}/js/jquery.js"></script>
</head>

<title>Insert title here</title>
</head>
<body>


         <div>用户登录表单</div>  
        <form name="addform" action="/test/add">  
            id: <input id="cityId"  type="text" name="id"><br/>    
            cityName: <input id="cityName" type="text" name="cityName"><br/>    
            
            <input type="submit">    
        </form>  
        
   

<script type="text/javascript">

 $(function(){
	
	/*在js中获取数据要加上双引号  */
	 var cityName = "${city.cityName?js_string}";
	 
	var cityId = ${city.id};
	$("#cityId").val(cityId);
	$("#cityName").val(cityName); 
	
	
}) 


</script>


</body>
</html>